﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SGameCommon;
using SGameDAL;


namespace SGameBLL
{
    public class LoginBLL
    {
        //public string Regbll(string account, String password)
        //{
        //    string msg = "";
        //    LoginDAL loginDAL = new LoginDAL();
        //    if (loginDAL.IsOK(account,password))
        //    {
        //        msg = "注册成功";
        //    }
        //    else
        //    {
        //        msg = "注册失败";          
        //    }
        //    return msg;
        //}
        LoginDAL loginDAL = new LoginDAL();
        #region 登录
        public object GetLongin(string act, String pwd)
        {           
            return loginDAL.GetLongin(act, pwd);
        }
        #endregion
        #region 注册
        public int GetReg(string act, String pwd)
        {
            return loginDAL.GetReg(act, pwd);                   
        }
        #endregion
    }
}
